<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'loginout.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">

<script>"undefined"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:"60601",secure:"60610"},c={nonSecure:"http://",secure:"https://"},r={nonSecure:"127.0.0.1",secure:"gapdebug.local.genuitec.com"},n="https:"===window.location.protocol?"secure":"nonSecure";script=e.createElement("script"),script.type="text/javascript",script.async=!0,script.src=c[n]+r[n]+":"+t[n]+"/codelive-assets/bundle.js",e.getElementsByTagName("head")[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>

<body data-genuitec-lp-enabled="false" data-genuitec-file-id="wc8-31" data-genuitec-path="/red_wine/WebRoot/sys/loginout.jsp">
	<%
		session.removeAttribute("name");    //清空session存储的用户名
		session.invalidate();
		response.sendRedirect("login.jsp"); //跳转到后台登录页
//		session.removeAttribute("name");    //清空session存储的用户名
//		Enumeration em = request.getSession().getAttributeNames();
//		while(em.hasMoreElements()){
//			request.getSession().removeAttribute(em.nextElement().toString());
//		}
//		session.invalidate();
		System.out.println("清空session存储的用户名");
//		response.sendRedirect("login.jsp");
	%>

</body>
</html>
